<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>JS实验结构</title>
	<script type="text/javascript">
		function superType(){
	this.property=true;
}
superType.prototype.getSuperValue= function(){
	return this.property;
}
function subType(){
	this.subproperty = false;
};
subType.prototype = new superType()
//将子类的原型设为超类的一个实例
subType.prototype.getSubValue=function(){
	return this.subproperty;
};
var oCase= new subType();
alert(oCase.getSuperValue());

	</script>
</head>
<body>
	
</body>
</html>